<template>
  <div style="min-height: 500px;">
    <el-card class="box-card">
      <div @click="_go(o.id)" v-for="o in data" style="line-height: 28px; padding: 20px 0; border-bottom: 1px solid #ccc; cursor: pointer; font-size: 14px;">
        <b style="font-weight:800;font-size:24px;margin-right:15px;color:#3E3E3E;margin-top:5px;">·</b>{{o.title }} &nbsp;&nbsp;&nbsp; <span style="color: red;">NEW</span>
        <span style="float: right;">{{o.up_time}}</span>
      </div>
    </el-card>
  </div>
</template>

<script>
  export default {
    name: "AdminInform",
    data(){
      return{
        data:[]
      }
    },
    methods:{
      _go(n){
        this.$router.push({path:"/mdd/inform1",query:{id:n}});
      },
      init(){
        let _this = this;
        _this.$http
          .post("/api/api.php", {
            id: "getNoticeList",
          })
          .then(function (response) {
            _this.data = response.data.data
            console.log(_this.data);
          });
      }
    },
    created(){
      this.init()
    }
  }
</script>

<style scoped>

</style>
